DicomObjects.NET.V8
DicomObjects Namespace / DicomImage Class / Send Method / Send(String,Int32,String,String,IEnumerable<String>) Method

Network address (as dotted notation or resolvable name) to which the image is to be sent

Port on which remote application is listening

Name of remote Application Entity

Name to quote for this Application Entity

A list of offered Transfer Syntaxes




In This Topic
    Send(String,Int32,String,String,IEnumerable<String>) Method
    In This Topic
    Sends an image to a remote Storage SCP
    Syntax
    'Declaration
     
    Public Overloads Function Send( _
       ByVal Node As String, _
       ByVal Port As Integer, _
       ByVal CallingAE As String, _
       ByVal CalledAE As String, _
       ByVal OfferedTS As IEnumerable(Of String) _
    ) As Integer
    'Usage
     
    Dim instance As DicomImage
    Dim Node As String
    Dim Port As Integer
    Dim CallingAE As String
    Dim CalledAE As String
    Dim OfferedTS As IEnumerable(Of String)
    Dim value As Integer
     
    value = instance.Send(Node, Port, CallingAE, CalledAE, OfferedTS)
    public int Send( 
       string Node,
       int Port,
       string CallingAE,
       string CalledAE,
       IEnumerable<string> OfferedTS
    )
    public:
    int Send( 
       String^ Node,
       int Port,
       String^ CallingAE,
       String^ CalledAE,
       IEnumerable<String^>^ OfferedTS
    ) 

    Parameters

    Node

    Network address (as dotted notation or resolvable name) to which the image is to be sent

    Port

    Port on which remote application is listening

    CallingAE

    Name of remote Application Entity

    CalledAE

    Name to quote for this Application Entity

    OfferedTS

    A list of offered Transfer Syntaxes

    Return Value

    The status as returned by the remote application. Zero indicates success.

    Remarks
    This method negotiates an association, sends one image over it, and then closes it. DICOM does not allow SCPs to draw any conclusions about the relationships between images based on the opening and closing of associations, so this should never be a problem (apart from slight network inefficiency). However, there are several badly written applications in the world, which incorrectly assume that the end of an association indicates the end of a series or a study etc., and if interfacing to such a faulty implementation, it is possible to send multiple images on one association by using a DicomAssociation object, and its SendInstances methods.
    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also